"""

__project__ = 'automation'
__file_name__ = 'homeWork_1030'
__author__ = 'wang'
__time__ = '2020/10/30 22:10'
__product_name = PyCharm

"""

import random

win = 0

while win < 10:
    computer = random.randint(0, 2)
    player = input('请输入您的选项，石头（0），剪刀（1），布（2）')
    if player != '1' and player != '2' and player != '3':
        print('您的输入有误')

    else:
        player = int(player)
        print('你输入的是%d，电脑输入的是%d'%(player, computer))
        if (player ==0 and computer ==1) or (player == 1 and computer == 2) or (player == 2 and computer ==0) :
            win += 1
            print('您胜利了，这是你%d次胜利'%win)
        elif player == computer:
            print('这一句是平局')
        else:
            print('这一局您输了')

print('您已经胜利10局，游戏结束')